﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace SAServices.Model
{
    [DataContract]
    public enum FamilyAttrType
    {
        //FamilyID, TemplateFileName, TemplateFileBinary, ModelPicName, ModelPicBinary, DrawPicName, " +
        //" DrawPicBinary, DrawingName, DrawingBinary, ReferenceName, ReferenceBinary, Description, Vendor
        [EnumMember]
        kTemplateFile = 1,
        [EnumMember]
        kModelPic,
        [EnumMember]
        kDrawPic,
        [EnumMember]
        kDrawing,
        [EnumMember]
        kReference,
        [EnumMember]
        kDescription,
        [EnumMember]
        kVendor
    }

    [DataContract]
    public class FamilyAttrInfo
    {
        [DataMember]
        public Guid FamilyID { get; set; }
        [DataMember]
        public string TemplateFileName { get; set; }
        [DataMember]
        public Byte[] TemplateFileBinary { get; set; }
        [DataMember]
        public string ModelPicName { get; set; }
        [DataMember]
        public Byte[] ModelPicBinary { get; set; }
        [DataMember]
        public byte[] ModelPicThumbnailBinary { get; set; }
        [DataMember]
        public string DrawPicName { get; set; }
        [DataMember]
        public Byte[] DrawPicBinary { get; set; }
        [DataMember]
        public string DrawingName { get; set; }
        [DataMember]
        public Byte[] DrawingBinary { get; set; }
        [DataMember]
        public string ReferenceName { get; set; }
        [DataMember]
        public Byte[] ReferenceBinary { get; set; }
        [DataMember]
        public string Description { get; set; }
        [DataMember]
        public string Vendor { get; set; }
    }
}
